<div class="left float-l">
        <h2><?php echo $this->categoryname; ?></h2>
        <div class="float-l">
        <br><br></div>
<table class="protable">
   <tr><th height="3"><b>Products</b></th><th></th></tr>
      <?php $i=0; ?>
      <?php foreach ($this->allproducts as $pro): ?>
      <?php if($i%2==0): ?>
           <tr>
      <?php endif; ?>
           <td>
               <img src="<?php echo "/prodimages/".$pro['image'] ?>" alt="<?php echo $pro['product_name']; ?>" >
           </td>
           <td>
              <b>Name: </b><?php echo $pro['product_name']?><br />
              <b>Price: </b><?php echo $pro['price']?><br />
              <b>Available Quantity:</b><?php echo $pro['quantity']?><br />
              <a href="javascript:void(0);" id="<?php echo $pro['product_id'] ?>" class="add" >Add to Cart</a>
           </td>
       <?php if($i%2==0): ?>
               </tr>
       <?php endif; ?>
       <?php $i++; ?>
       <?php endforeach;?>
</table>